const express = require('express')
const router = express.Router()

// 导入订单路由处理函数对应的模块
const order_handler = require('../router_handler/order')

// 生成订单
router.post('/generateOrder', order_handler.generateOrder)

// 获取订单详情
router.post('/getOrder', order_handler.getOrder)

// 获取订单列表
router.get('/getOrderList', order_handler.getOrderList)

// 获取待支付订单
router.get('/getWaitPayOrder', order_handler.getWaitPayOrder)

module.exports = router